package com.worldcup.dao;

import com.worldcup.model.PredictKnockout;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author duwan.zq
 */
@Mapper
@Repository
public interface PredictKnockoutMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PredictKnockout record);

    int insertSelective(PredictKnockout record);

    PredictKnockout selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PredictKnockout record);

    int updateByPrimaryKey(PredictKnockout record);

    /**
     * batch insert
     * @param knockouts
     */
    void batchInsert(List<PredictKnockout> knockouts);

    /**
     * select by openid
     * @param openid
     * @return
     */
    List<PredictKnockout> selectByOpenid(String openid);

    /**
     * delete
     * @param openid
     */
    void deleteByOpenid(String openid);
}